.class public Lcom/zuimeia/ui/webview/SearchBox;
.super Landroid/widget/EditText;
.source "SearchBox.java"


# instance fields
.field private mDeleteDrawable:Landroid/graphics/drawable/Drawable;

.field private mSearchDrawable:Landroid/graphics/drawable/Drawable;

.field private mThis:Lcom/zuimeia/ui/webview/SearchBox;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 2
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 24
    invoke-direct {p0, p1}, Landroid/widget/EditText;-><init>(Landroid/content/Context;)V

    .line 25
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/webview/SearchBox;->init(Landroid/content/Context;)V

    .line 26
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 30
    invoke-direct {p0, p1, p2}, Landroid/widget/EditText;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 31
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/webview/SearchBox;->init(Landroid/content/Context;)V

    .line 32
    return-void
.end method

.method static synthetic access$000(Lcom/zuimeia/ui/webview/SearchBox;)Landroid/graphics/drawable/Drawable;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/webview/SearchBox;

    .prologue
    .line 17
    iget-object v0, p0, Lcom/zuimeia/ui/webview/SearchBox;->mDeleteDrawable:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method static synthetic access$100(Lcom/zuimeia/ui/webview/SearchBox;)Lcom/zuimeia/ui/webview/SearchBox;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/webview/SearchBox;

    .prologue
    .line 17
    iget-object v0, p0, Lcom/zuimeia/ui/webview/SearchBox;->mThis:Lcom/zuimeia/ui/webview/SearchBox;

    return-object v0
.end method

.method static synthetic access$200(Lcom/zuimeia/ui/webview/SearchBox;)Landroid/graphics/drawable/Drawable;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/webview/SearchBox;

    .prologue
    .line 17
    iget-object v0, p0, Lcom/zuimeia/ui/webview/SearchBox;->mSearchDrawable:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method private init(Landroid/content/Context;)V
    .registers 7
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    const/4 v4, 0x0

    .line 36
    iput-object p0, p0, Lcom/zuimeia/ui/webview/SearchBox;->mThis:Lcom/zuimeia/ui/webview/SearchBox;

    .line 38
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Lcom/zuimeia/ui/R$drawable;->seach_icon_seach:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    iput-object v2, p0, Lcom/zuimeia/ui/webview/SearchBox;->mSearchDrawable:Landroid/graphics/drawable/Drawable;

    .line 39
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Lcom/zuimeia/ui/R$drawable;->search_icon_clear_selector:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    iput-object v2, p0, Lcom/zuimeia/ui/webview/SearchBox;->mDeleteDrawable:Landroid/graphics/drawable/Drawable;

    .line 41
    new-instance v1, Lcom/zuimeia/ui/webview/SearchBox$1;

    invoke-direct {v1, p0}, Lcom/zuimeia/ui/webview/SearchBox$1;-><init>(Lcom/zuimeia/ui/webview/SearchBox;)V

    .line 72
    .local v1, "touchListener":Landroid/view/View$OnTouchListener;
    new-instance v0, Lcom/zuimeia/ui/webview/SearchBox$2;

    invoke-direct {v0, p0}, Lcom/zuimeia/ui/webview/SearchBox$2;-><init>(Lcom/zuimeia/ui/webview/SearchBox;)V

    .line 113
    .local v0, "textWatcher":Landroid/text/TextWatcher;
    invoke-virtual {p0, v1}, Lcom/zuimeia/ui/webview/SearchBox;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 114
    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/webview/SearchBox;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 115
    iget-object v2, p0, Lcom/zuimeia/ui/webview/SearchBox;->mSearchDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0, v2, v4, v4, v4}, Lcom/zuimeia/ui/webview/SearchBox;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 116
    return-void
.end method


# virtual methods
.method public setOnTouchListener(Landroid/view/View$OnTouchListener;)V
    .registers 3
    .param p1, "l"    # Landroid/view/View$OnTouchListener;

    .prologue
    .line 121
    new-instance v0, Lcom/zuimeia/ui/webview/SearchBox$3;

    invoke-direct {v0, p0, p1}, Lcom/zuimeia/ui/webview/SearchBox$3;-><init>(Lcom/zuimeia/ui/webview/SearchBox;Landroid/view/View$OnTouchListener;)V

    .line 152
    .local v0, "listener":Landroid/view/View$OnTouchListener;
    invoke-super {p0, v0}, Landroid/widget/EditText;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 153
    return-void
.end method
